import 'package:flutter/material.dart';
import 'package:top_foundation/utils/util.dart';

class DropDownState {
  late DropDownModel md;
  int? current;
  late ScrollController sc;
}

class DropDownModel {
  String? initialVal;
  List<String>? list;
  MainAxisAlignment alignment;
  List<Widget>? prefixList;
  EdgeInsets frame;
  double itemHeight;
  Widget? child;

  DropDownModel({
    this.initialVal,
    this.child,
    this.list,
    required this.frame,
    this.alignment = MainAxisAlignment.center,
    this.prefixList,
    double? itemHeight,
  }) : itemHeight = itemHeight ?? 50.r;
}

class UsuallyModel {
  String? url;
  IconData? iconData;
  Icon? icon;
  String name;
  int? unReadCount;
  VoidCallback? onTap;
  UsuallyModel(
      {this.url,
      this.icon,
      this.iconData,
      required this.name,
      this.unReadCount,
      this.onTap});
}
